<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ManageContacts.aspx.cs" Inherits="Web_Interface_ManageContacts" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<title>Free Template from Interspire.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.field {width:90px;}
.passtext {
	font-size: 11px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.desctext {
	font-size: 11px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.prodtop {
	font-size: 12px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-weight: bolder;
	color: #FFFFFF;
}
.prodtext {
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
    .style1
    {
        width: 191px;
    }
    .style2
    {
        width: 191px;
        height: 12px;
    }
-->
</style>
<script type="text/JavaScript">
<!--
    function MM_swapImgRestore() { //v3.0
        var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
    }

    function MM_preloadImages() { //v3.0
        var d = document; if (d.images) {
            if (!d.MM_p) d.MM_p = new Array();
            var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
                if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
        }
    }

    function MM_findObj(n, d) { //v4.01
        var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
            d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
        }
        if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
        for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
        if (!x && d.getElementById) x = d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
        var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
            if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
    }
//-->
</script>
</head>
<body bgcolor="#E8E8E8" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/aboutover.jpg','images/serviceover.jpg','images/prodover.jpg','images/getover.jpg','images/homeover.jpg')">
    <form id="form1" runat="server">
<div align="center">
  <table width="683" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td background="images/mainbg.jpg"><table id="Table_01" width="683" height="253" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="6"><img src="images/index_01.jpg" width="411" height="73" alt=""></td>
          <td colspan="2"><a href="#"><img src="images/index_02.jpg" alt="" width="133" height="73" border="0"></a></td>
          <td colspan="2">
              <a href="#"><img src="images/index_02.jpg" alt="" width="133" height="73" border="0"></a></td>
          <td rowspan="5"><img src="images/index_04.jpg" width="1" height="252" alt=""></td>
        </tr>
        <tr>
          <td colspan="2"><img src="images/index_05.jpg" width="66" height="36" alt=""></td>
          <td>
              <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','images/aboutover.jpg',1)">
              <img src="images/index_07.jpg" alt="About Us" name="about0" width="108" 
                  height="36" border="0"></a></td>
          <td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('about','','images/aboutover.jpg',1)"><img src="images/index_07.jpg" alt="About Us" name="about" width="108" height="36" border="0"></a></td>
          <td><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('service','','images/serviceover.jpg',1)"><img src="images/index_08.jpg" alt="Services" name="service" width="108" height="36" border="0"></a></td>
          <td colspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('products','','images/prodover.jpg',1)"><img src="images/index_09.jpg" alt="Products" name="products" width="109" height="36" border="0"></a></td>
          <td colspan="2"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('qoute','','images/getover.jpg',1)"><img src="images/index_10.jpg" alt="Qoute" name="qoute" width="111" height="36" border="0"></a></td>
          <td><img src="images/index_11.jpg" width="71" height="36" alt=""></td>
        </tr>
        <tr>
          <td colspan="5"><img src="images/index_12.jpg" width="391" height="84" alt=""></td>
          <td colspan="5" rowspan="3"><img src="images/index_13.jpg" width="291" height="143" alt=""></td>
        </tr>
        <tr>
          <td rowspan="2"><img src="images/index_14.jpg" width="60" height="59" alt=""></td>
          <td colspan="4"><table width="331" height="36" border="0" cellpadding="0" cellspacing="0" background="images/index_15.jpg">
            <tr>
              <td valign="top">Whenever , Wherever</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="4"><img src="images/index_16.jpg" width="331" height="23" alt=""></td>
        </tr>
        <tr>
          <td><img src="images/spacer.gif" width="60" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="6" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="109" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="108" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="108" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="20" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="89" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="44" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="67" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="71" height="1" alt=""></td>
          <td><img src="images/spacer.gif" width="1" height="1" alt=""></td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td background="images/mainbg.jpg">
          <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
          <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
          <br />
          <table id="Table_2" width="682" height="317" border="0" cellpadding="0" 
              cellspacing="0">
          <tr>
            <td class="style2"><table width="20" height="316" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td>&nbsp;</td>
                </tr>
            </table></td>
            <td class="style2"><table width="414" border="0" cellpadding="0" cellspacing="0" 
                    style="height: 529px">
                <tr>
                  <td height="40" class="desctext">&nbsp;</td>
                </tr>
                <tr>
                  <td class="desctext">
                  <table border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F8F8" id="Table14">
                    <tr>
            <td rowspan="2" class="style1">
                              AddNewContact</td>
                    </tr>
                  </table>
                  <table border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F8F8" id="Table9">
                    <tr>
            <td rowspan="2" class="style1">ContactName:</td>
                      <td rowspan="3">
                              <asp:TextBox ID="FirstName" runat="server" Height="20px" 
                                  style="margin-bottom: 19px"></asp:TextBox>
                              </td>
                    </tr>
                  </table>
                  <table border="0" cellpadding="0" cellspacing="0" bgcolor="#F8F8F8" id="Table10">
                    <tr>
            <td rowspan="2" class="style1">ContactTelephone:</td>
                      <td rowspan="3">
                              <asp:TextBox ID="LastName" runat="server" Height="22px"></asp:TextBox>
                              </td>
                    </tr>
                  </table>
                      <br />
                      <asp:Button ID="Button1" runat="server" Text="Add" />
                      <br />
                      <br />
                      <h2>
                          Contacts</h2>
                      <br />
                      <br />
                      <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                          DataSourceID="SqlDataSource1" 
                          onselectedindexchanged="GridView2_SelectedIndexChanged" Width="296px">
                          <Columns>
                              <asp:BoundField DataField="Contact_Name" HeaderText="Contact_Name" 
                                  SortExpression="Contact_Name" />
                              <asp:BoundField DataField="Contact_Number" HeaderText="Contact_Number" 
                                  SortExpression="Contact_Number" />
                          </Columns>
                      </asp:GridView>
                      <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                          ConnectionString="<%$ ConnectionStrings:MrMobileDBConnectionString %>" 
                          SelectCommand="selectContacts" SelectCommandType="StoredProcedure">
                          <SelectParameters>
                              <asp:ControlParameter ControlID="Label2" Name="username" PropertyName="Text" 
                                  Type="String" />
                          </SelectParameters>
                      </asp:SqlDataSource>
                      <br />
                      <br />
                      <br />
                      <br />
                      <br />
                      <br />
                      <br />
                      <br />
                      <br />
                      <br />
                      <br />
                    </td>
                </tr>
            </table></td>
            <td class="style2"></td>
            <td class="style2"></td>
          </tr>
                    
        </table>
      </td>
    </tr>
      <tr>
      <td background="images/mainbg.jpg">&nbsp;</td>
      </tr>
      <tr>
      <td background="images/mainbg.jpg">#</td>
      </tr>
    <tr>
      <td><img src="images/mainbot.jpg" width="683" height="22"></td>
    </tr>
  </table>
  <table width="660" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="26" class="baseline">&nbsp;&nbsp;<span class="desctext">&copy; Copyright 2003-2004 YourCompany. All Rights Reserved.</span></td>
      <td align="right" class="baseline"><div align="center"><a href="http://www.interspire.com/templates/" class="desctext"><font color="#000000">Design by Interspire</font></a></div></td>
    </tr>
  </table>
  <p>&nbsp;    </p>
</div>
    </form>
</body>
</html>